/***********************************************************************
 * Module:  Smslog.java
 * Author:  Administrator
 * Purpose: Defines the Class Smslog
 ***********************************************************************/
package com.sogoodsoft.entity.common;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.sogoodsoft.entity.IdEntity;
import com.sogoodsoft.entity.account.User;
import com.sogoodsoft.entity.app.SysClass;

/** 短信发送记录 */

public class Smslog extends IdEntity {

    public java.lang.String target;

    public java.lang.String msg;

    /** 短信发送时间 */
    public java.util.Date smsTime;

    public SysClass sysClass;

    public User user;

    public java.lang.String getTarget() {
        return target;
    }

    public void setTarget(java.lang.String target) {
        this.target = target;
    }

    public java.lang.String getMsg() {
        return msg;
    }

    public void setMsg(java.lang.String msg) {
        this.msg = msg;
    }

    @ManyToOne(cascade = { CascadeType.REFRESH, CascadeType.MERGE }, optional = true)
    @JoinColumn(name = "SMS_STATUS")
    public SysClass getSysClass() {
        return sysClass;
    }

    public void setSysClass(SysClass sysClass) {
        this.sysClass = sysClass;
    }

    @ManyToOne(cascade = { CascadeType.REFRESH, CascadeType.MERGE }, optional = true)
    @JoinColumn(name = "CURR_USER")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Column(name = "SMS_TIME")
    public java.util.Date getSmsTime() {
        return smsTime;
    }

    public void setSmsTime(java.util.Date smsTime) {
        this.smsTime = smsTime;
    }

}